package com.example.administrator.kotlin.bean

import com.chad.library.adapter.base.entity.MultiItemEntity

/**
 * Created by Administrator on 2018/3/2/002.
 */
class MultiBean : MultiItemEntity {
    private var itemType: Int = 0
    var spanSize: Int = 0
    var content: String? = null

    companion object {
        val TEXT = 1
        val IMAGE = 3
        val TEXT_IMAGE = 2
    }

    constructor(itemType: Int, spanSize: Int, content: String) {
        this.itemType = itemType
        this.spanSize = spanSize
        this.content = content
    }


    override fun getItemType(): Int {
        return spanSize
    }

}